<!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org">
<head th:replace="fragment :: myhead(~{::title},~{})">
    <title >Blank page</title>
</head>
<body>
<script th:src="@{/example/setcookie(cookie=testsetcookie)}"></script>
<fieldset class="layui-elem-field ">
    <div>
        测试通过Script设置Cookie
    </div>
</fieldset>
</body>
</html>